package sample3;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class FlowLayoutTest {
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.setSize(600, 400);
		frame.setLayout(new FlowLayout());
		for (int i = 0; i < 5; i++) {
			frame.add(new JButton("" + i));
		}
		frame.setVisible(true);
	}
}
